package top.frsf.zombies;

import top.frsf.GameObject;
import top.frsf.GamePanel;
import top.frsf.iface.IDelayMovie;
import top.frsf.utils.CountUtil;
import top.frsf.utils.ZomState;

import java.awt.*;

/**
 * @BelongsProject: MiniPZ
 * @BelongsPackage: top.frsf.zombies
 * @Author: FRSF
 * @CreateTime: 2022-09-10  12:58
 * @Description: 姜丝父类
 * @Version: 1.0
 */
public abstract class ZomObject extends GameObject implements IDelayMovie {

    static Image[] normal = null;
    static Image[] attack = null;
    CountUtil count = new CountUtil();
    CountUtil attackCount = new CountUtil();
    // zom血量
    int hp;
    // zom状态
    ZomState state = ZomState.MOVE;
    // zom伤害
    int heartHP;

    public ZomObject(String img, int x, int y, int width, int height, int hp, int heartHP) {
        super(img, x, y, width, height);
        this.hp = hp;
        this.heartHP = heartHP;
    }

    // zom移动
    public abstract void move();

    // zom被攻击掉血
    public abstract void downHP(int hp);
}
